<style>
	.pagination li span.currentpage {
		color: #FFF;
		font-weight: bold;
		background-color: #F87622;
		border-color: #FC6520;
		position: relative;
		z-index: 2;
	}
</style>
<div ng-include="sys_html('layout/_header')"></div>
<div class="nch-container wrapper">
	<div class="left">
		<div class="nch-module nch-module-style03">
			<div class="title">
				<h3>最近浏览</h3>
			</div>
			<div class="content">
				<div class="nch-sidebar-viewed ps-container" id="nchSidebarViewed">
					<ul>
						<li ng-repeat="row in pagedata.hlist" class="nch-sidebar-bowers">
							<div class="goods-pic"><a href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+row.goodsid)" >
								<img ng-src="{{tomedia(row.image)}}" data-url="{{tomedia(row.image)}}" title="{$row['title']}" alt="{{row.title}}" style="display: inline;"></a></div>
							<dl>
								<dt><a style="color:#333;" href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+row.goodsid)" >{{row.title}}</a></dt>
								<dd>¥{{row.price || '0.00'}}</dd>
							</dl>
						</li>
						
					</ul>
					<!--<div class="ps-scrollbar-x-rail" style="left: 0px; bottom: 3px; width: 206px; display: none;">
						<div class="ps-scrollbar-x" style="left: 0px; width: 0px;"></div>
					</div>
					<div class="ps-scrollbar-y-rail" style="top: 0px; right: 3px; height: 309px; display: inherit;">
						<div class="ps-scrollbar-y" style="top: 0px; height: 192px;"></div>
					</div>-->
				</div>
				<a href="javascript:;" ng-click="access_json('jy_weishop/member.history/')" class="nch-sidebar-all-viewed">全部浏览历史</a></div>
		</div>
	</div>
	<div class="right">
		<div id="gc_goods_recommend_div" style="width:980px;"></div>
		<div class="shop_con_list" id="main-nav-holder">
			<nav class="sort-bar" id="main-nav">
				<div class="nch-sortbar-array"> 排序方式：
					<ul>
						<li id="good_default" ng-class="{'selected':pagedata.params.order=='default'}"><a href="javascript:;" ng-click="pagedata.params.order='default';tool.get_list('getlist',true)" title="默认排序">默认</a></li>
						<li id="goood_sale" ng-class="{'selected':pagedata.params.order=='sales'}">
							<a ng-class="{'asc':pagedata.params.order_type==1,'desc':pagedata.params.order_type==2}" href="javascript:;" ng-click="pagedata.params.order='sales';tool.get_list('getlist',true)" title="点击按销量从高到低排序">销量<i></i></a>
						</li>						
						<li id="goood_price" ng-class="{'selected':pagedata.params.order=='price'}">
							<a ng-class="{'asc':pagedata.params.order_type==1,'desc':pagedata.params.order_type==2}" href="javascript:;" ng-click="pagedata.params.order='price';toogle(pagedata.params,'order_type',[1,2]);tool.get_list('getlist',true)" title="点击按价格从高到低排序">价格<i></i></a>
						</li>
						<li>
							<div>
								<input id="priceMin" title="最低价" value="" maxlength="6" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="input-txt"><em>-</em>
								<input id="priceMax" title="最高价" value="" maxlength="6" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="input-txt">
								<a id="priceBtn" class="priceBtn">确定</a>
							</div>
						</li>
					</ul>
				</div>
				<div id="isnew_box" ng-class="{'nch-sortbar-owner':1, 'selected':pagedata.params.order=='isnew'}">
					<span>
						<a href="javascript:;" ng-click="pagedata.params.order='isnew';tool.get_list('getlist',true)">新品上市</a>
					</span>
				</div>
				<div id="ishot_box" ng-class="{'nch-sortbar-owner':1, 'selected':pagedata.params.order=='ishot'}">
					<span>
						<a href="javascript:;" ng-click="pagedata.params.order='ishot';tool.get_list('getlist',true)">热卖商品</a>
					</span>
				</div>
				<div id="isrecommand_box" ng-class="{'nch-sortbar-owner':1, 'selected':pagedata.params.order=='isrecommand'}">
					<span>
						<a href="javascript:;" ng-click="pagedata.params.order='isrecommand';tool.get_list('getlist',true)" >推荐商品</a>
					</span>
				</div>
				<div id="isdiscount_box" ng-class="{'nch-sortbar-owner':1, 'selected':pagedata.params.order=='isdiscount'}">
					<span>
						<a href="javascript:;" ng-click="pagedata.params.order='isdiscount';tool.get_list('getlist',true)">促销商品</a>
					</span>
				</div>
				<script>
					var order = scope.pagedata.order;
					var url = scope.pagedata.url;	
					$('#priceBtn').bind('click',function(){
						var priceMin = $('#priceMin').val();
						var priceMax = $('#priceMax').val();
						console.log(priceMax);console.log(priceMin);
						scope.pagedata.params.priceMin=priceMin;
						scope.pagedata.params.priceMax=priceMax;
						scope.tool.get_list('getlist',true)
					});
				</script>
				
				
			</nav>
			<!-- 商品列表循环  -->

			<div>
				<style type="text/css">
					#box {
						background: #FFF;
						width: 238px;
						height: 410px;
						margin: -390px 0 0 0;
						display: block;
						border: solid 4px #D93600;
						position: absolute;
						z-index: 999;
						opacity: .5
					}
					.shopMenu {
						position: fixed;
						z-index: 1;
						right: 25%;
						top: 0;
					}
				</style>
				<div class="squares">
					<input type="hidden" id="lockcompare" value="unlock">
					<ul class="list_pic">
						<li ng-repeat="row in pagedata.list" class="item">
							<div class="goods-content" nctype_goods=" 52" nctype_store="1">
								<div class="goods-pic"><a href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+row.id)"  title="{{row.title}}"><img width="230" height="220" ng-src="{{tomedia(row.image)}}" data-url="{{tomedia(row.image)}}" title="{{row.title}}" alt="{{row.title}}" style="display: inline;"></a></div>
								<!--<div class="goods-promotion"><span>限时折扣</span></div>-->
								<div class="goods-info" style="padding:10px">
									<div class="goods-price"> <em class="sale-price" title="商城价">¥{{row.price}}</em> <em class="market-price" title="市场">¥{{row.price * 1.2}}</em> 
										<input type="hidden" name="score" value="5" readonly="readonly"></span>
										<span class="price"><i class="icon icon-cart"></i></span>
									</div>
									<div class="goods-name"><a href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+row.id)" >{{row.title}}<em></em></a></div>
									<div class="goods-tag">
										<span class="fui-tag-red">自营</span>
										<span class="raty" data-score="5" title="很满意" style="width: 80px;">
										<img src="../addons/jy_weishop/resource/pc/images/star-on.png" alt="1" title="很满意">&nbsp;
										<img src="../addons/jy_weishop/resource/pc/images/star-on.png" alt="2" title="很满意">&nbsp;
										<img src="../addons/jy_weishop/resource/pc/images/star-on.png" alt="3" title="很满意">&nbsp;
										<img src="../addons/jy_weishop/resource/pc/images/star-on.png" alt="4" title="很满意">&nbsp;
										<img src="../addons/jy_weishop/resource/pc/images/star-on.png" alt="5" title="很满意">
										</span>
										<input type="hidden" name="score" value="5" readonly="readonly"></span>
										<span class="price"><i class="icon icon-cart"></i></span>
									</div>
								</div>
							</div>
						</li>

						<div class="clear"></div>
					</ul>
					<div id="loading_show" class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>

				</div>

			</div>
			<div class="tc mt20 mb20">
				<!--<div class="pagination"> <ul><li><span>首页</span></li><li><span>上一页</span></li><li><span class="currentpage">1</span></li><li><span>下一页</span></li><li><span>末页</span></li></ul> </div>-->
				<div ng-include="sys_html('common/page',true)"></div>
			</div>
		</div>

		<!-- 猜你喜欢 -->
		<div id="guesslike_div" style="width:980px;"></div>
	</div>
</div>
<script type="text/javascript">
	$('#add_cart').bind('click',function(){
	});
scope.tool.get_list('jy_weishop/goods.index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/goods.index/getlist/');
}
</script>
<div ng-include="sys_html('layout/_footer')"></div>